#pragma once

#include <QtWidgets/QMainWindow>
#include <QButtonGroup>
#include <QFile>
#include <QFileDialog>
#include <QCryptographicHash>
#include <QSqlDatabase>
#include <QSqlError>
#include <QSqlQuery>
#include <QJsonParseError>
#include <QJsonObject>
#include <QDateTime>
#include <QDesktopServices>
#include "log.h"
#include "const.h"
#include <curl/curl.h>
#include "httpcommon.h"
#include "ui_finish.h"
#include "finishitem.h"
#include "globaldata.h"

class Finish : public QWidget
{
    Q_OBJECT

public:
	Finish(QWidget *parent = Q_NULLPTR);
	~Finish();
protected:
	private Q_SLOTS:
	void openDirSlot(QString itemID);
	void clearSlot(QString itemID);
	void refreshFinishSlot();
Q_SIGNALS:
	void refreshResourceListSignal();
private:
	void loadFinishData();
	void addFinishItem(QString itemID, QString filePath, QString time, int flag);
private:
    Ui::Finish ui;
	QMap<QString, FinishItem*> m_finishMap;
};
